<extend name="./Common/View/EasyUI/form.html"/>
<block name="form">
    <div class="row">
        <div class="span12">
            <form method="post" id="pageForm" class="form-horizontal" action="Sys/User/edit">
                <input name="id" value="{$vo.id}" type="hidden">
                <table class="table table-bordered table-striped">
                    <tbody>
                    <tr>
                        <th colspan="4">基本信息</th>
                    </tr>
                    <tr>
                        <td class="revise-left" width="15%"><span class="text-error">*</span>账号:</td>
                        <td>
                            <input name="account" id="account" type="text" value="{$vo.account}" placeholder="请输入账号"
                                   class="easyui-validatebox"
                                   data-options="required:true,validType:'account'" readonly>
                        </td>
                        <td class="revise-left" width="15%"><span class="text-error">*</span>姓名:</td>
                        <td width="35%">
                            <input name="nickname" type="text" value="{$vo.nickname}" placeholder="请输入姓名"
                                   class="easyui-validatebox"
                                   data-options="required:true,validType:'name'">
                        </td>
                    </tr>
                    <tr>
                        <td class="revise-left" width="15%"><span class="text-error">*</span>所在部门:</td>
                        <td>
                            <select id="depart_id" name="depart_id" class="easyui-validatebox"
                                    data-options="required:true"></select>
                        </td>
                        <td class="revise-left" width="15%"><span class="text-error">*</span>账号状态:</td>
                        <td >
                            <label class="radio inline"><input type="radio" name="status" value="1"
                                <if condition="$vo.status eq 1"> checked="checked"</if>
                                >是</label>
                            <label class="radio inline"><input type="radio" name="status" value="0"
                                <if condition="$vo.status eq 0"> checked="checked"</if>
                                >否</label>
                            <span class="help-inline"></span>
                        </td>
                    </tr>

                    <tr>
                        <td class="revise-left" width="15%">手机号码:</td>
                        <td>
                            <input name="mobile" type="text" value="{$vo.mobile}" placeholder="请输入手机号码"
                                   class="easyui-validatebox"
                                   data-options="validType:'mobile'">

                        </td>
                        <td class="revise-left" width="15%">邮箱:</td>
                        <td width="35%">
                            <input name="email" type="text" value="{$vo.email}" placeholder="请输入邮箱"
                                   class="easyui-validatebox"
                                   data-options="validType:'email'">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">权限信息</td>
                    </tr>

                    <tr>
                        <td class="revise-left" width="15%">身份:</td>
                        <td>
                            <select id="identity_id" name="identity_id" class="easyui-validatebox"
                                    data-options="required:true"></select>
                        </td>
                        <td class="revise-left" width="15%">角色:</td>
                        <td width="35%">
                            <select id="role_id" name="role_id" class="easyui-validatebox"
                                    data-options="required:true"></select>
                        </td>
                    </tr>

                    </tbody>
                </table>

            </form>
        </div>
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        $(function () {
            app.combobox('#identity_id', 'Sys/Identity/lists',{multiple:true,value:[{:implode(',',$vo['identity_id'])}]});
            app.combobox('#role_id', 'Sys/Role/lists', {multiple:true,value:[{:implode(',',$vo['role_id'])}]});
            app.combotree('#depart_id', 'Sys/Depart/lists', {value:{$vo['depart_id']}});
        })
    </script>
</block>